<?php

echo '<div class="add_dvd_container">';
echo form_open_multipart('admin/update_dvd/'.$this->uri->segment(3));

$result = $this->db->get_where('dvds', array('dvd_id' => $this->uri->segment(3)))->result();
$dvd = $result[0];


?>

<table class="add_dvd_table">
	<tr>
	<td>DVD Title</td>
	<td>
		<?php
		echo form_error('dvd_title');
		echo form_input('dvd_title', set_value('dvd_title', $dvd->dvd_title));
		?>
	</td>
	</tr>
	<tr>
	<td>DVD Price</td>
	<td>
		<?php
		echo form_error('dvd_price');
		echo form_input('dvd_price', set_value('dvd_price', $dvd->dvd_price));
		?>
	</td>
	</tr>
	<tr>
	<td>DVD Cover Image</td>
	<td>
		<?php
		echo form_error('dvd_cover');
		echo $this->upload->display_errors('<div class="form_error">', '</div>');
		echo form_upload('dvd_cover');
		?>
	</td>
	</tr>
	<tr>
	<td colspan='2'><?php echo form_submit('add_dvd_submit', 'Update DVD'); ?></td>
	</tr>
</table>


<?
echo form_close();
echo '</div>';